<template>
  <div>
    <div class="profile-content">
      <div class="avatar"></div>
      <div class="user">
        <div class="name">匿名玩家</div>
        <div class="lv">
          <div>Lv.4</div>
          <div class="progress-bar"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.profile-content {
  width: 15rem;
  height: 4.8rem;
  background: rgb(0,0,0,0.2);
  position: relative;
  top: 1.3rem;
  left: 1rem;
  border-radius: 1.5rem;
  display: flex;

  .avatar {
    width: 5.3rem;
    height: 5.3rem;
    background: #eeeeee;
    border: 0.2rem solid #ffffff;
    border-radius: 50%;
    position: relative;
    top: -0.7rem;
    left: -1rem;
  }
  .user {
    flex: 1;
    height: 4.8rem;
    position: relative;
    left: -1rem;
    font-weight: bold;
    padding-left: 1rem;
    
    .name {
      font-size: 1.6rem;
      color: #FFFFFF;
    }

    .lv {
      font-size: 1.4rem;
      color: #FFFFFF;
      display: flex;
      align-items: center;

      .progress-bar {
        height: 1rem;
        flex: 1;
        background: rgba(0,0,0,0.8);
        border-radius: 1rem;
        margin-left: 0.5rem;
        position: relative;
        overflow: hidden;

        &::after {
          position: absolute;
          left: 0;
          top: 0;
          z-index: 3;
          height: 1rem;
          width: 50%;
          background:linear-gradient(180deg, #98e670 0%, #408833 100%);
          border: 0.1rem solid #9afa63;
          border-right: none;
          box-sizing: border-box;
          border-radius: 1rem 0 0 1rem;
          content: "";
        }
      }
    }
  }
}
</style>